package umt.cs.cs241.assignment2.c_2_5;

public class C_Class extends B_Class {

	private int x;
	
	public C_Class(int x){
		super(x);
		this.x = x;
	}
	
	public void setA_ClassValue(A_Class A, int value){
		if(A.getClass().equals(A_Class.class)){
			A.setX(value);
			System.out.println("You have set A's X value to " + value);
		}else{
			System.out.println("You can only set the value if the class is of type A_Class");
		}
	}
	
}
